/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
 */

package com.device.idea.demo.core;

/**
 * ChildPenMenu
 * 画笔选择器子选项菜单
 *
 * @since 2020-12-21
 */
public class PenChildMenu {
    /**
     * 图片资源Id
     */
    private int mImageResId;

    /**
     * 选中状态
     */
    private boolean isSelected;

    private int mPenColor;

    private int mPenType;

    /**
     * 构造方法
     *
     * @param imageResId 图片资源Id
     * @param isSelected 选中状态
     * @param penColor 笔颜色
     * @param penType 笔类型
     */
    public PenChildMenu(int imageResId, boolean isSelected, int penColor, int penType) {
        mImageResId = imageResId;
        this.isSelected = isSelected;
        mPenColor = penColor;
        mPenType = penType;
    }

    /**
     * isSelected
     *
     * @return 获取选中状态
     */
    public boolean isSelected() {
        return isSelected;
    }

    /**
     * setIsSelected
     *
     * @param isSelected 设置选中状态
     */
    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }

    /**
     * getImageResId
     *
     * @return 图片资源Id
     */
    public int getImageResId() {
        return mImageResId;
    }

    /**
     * getPenColor
     *
     * @return pen color
     */
    public int getPenColor() {
        return mPenColor;
    }

    /**
     * getPenType
     *
     * @return pen type
     */
    public int getPenType() {
        return mPenType;
    }
}